package com.hancheng.usercloud.business.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户信息表 实体类
 *
 * @author 韩诚
 * @date 2025/06/22
 */
@Data
@NoArgsConstructor
@ApiModel("用户信息表 实体类PO")
@TableName(value = "sys_user")
public class SysUserPO implements Serializable {

	private static final long serialVersionUID = -1L;

	@ApiModelProperty(value = "用户ID")
    @TableId(value = "user_id", type = IdType.AUTO)
	private Long userId;

	@ApiModelProperty(value = "用户账号")
    @TableField(value = "user_name")
	private String userName;

	@ApiModelProperty(value = "用户昵称")
    @TableField(value = "nick_name")
	private String nickName;

	@ApiModelProperty(value = "密码")
    @TableField(value = "password")
	private String password;

	@ApiModelProperty(value = "银行卡号")
    @TableField(value = "bank_card_number")
	private String bankCardNumber;

	@ApiModelProperty(value = "用户邮箱")
    @TableField(value = "email")
	private String email;

	@ApiModelProperty(value = "手机号码")
    @TableField(value = "phonenumber")
	private String phonenumber;

	@ApiModelProperty(value = "用户性别（0：男 1：女 2：未知）")
    @TableField(value = "sex")
	private Integer sex;

	@ApiModelProperty(value = "头像地址")
    @TableField(value = "avatar")
	private String avatar;

	@ApiModelProperty(value = "帐号状态（0：正常 1：停用）")
    @TableField(value = "status")
	private Integer status;

	@ApiModelProperty(value = "删除标志（0：未删除 1：已删除）")
    @TableField(value = "del_flag")
	private Integer delFlag;

	@ApiModelProperty(value = "最后登录IP")
    @TableField(value = "login_ip")
	private String loginIp;

	@ApiModelProperty(value = "最后登录时间")
    @TableField(value = "login_date")
	private Date loginDate;

	@ApiModelProperty(value = "备注")
    @TableField(value = "remark")
	private String remark;

	@ApiModelProperty(value = "创建者用户ID")
    @TableField(value = "create_user_id")
	private Long createUserId;

	@ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
	private Date createTime;

	@ApiModelProperty(value = "更新者用户ID")
    @TableField(value = "update_user_id")
	private Long updateUserId;

	@ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time")
	private Date updateTime;

}